/**
 * Created by kroyo on 2017/8/20.
 */


var mSwiper = new Swiper('#banner .swiper-container', {
    loop: true,
    autoplay: 5000,
    simulateTouch : false,
    autoplayDisableOnInteraction : false,
    preventClicks : false,
    noSwiping : true,
    prevButton:'.swiper-button-prev',
    nextButton:'.swiper-button-next'
});


$('body').ready(function(){
    // var height = $('#banner .swiper-slide').height();
    // if(height>0){
    //     $('#banner').css('height',height);
    // }

    var $control = $('#banner .fu-control');
    var $banner = $('#banner');
    $banner.mouseover(function () {
        $control.fadeIn(function(){
            $(this).css('display','block');
        })
    })
    $banner.mouseout(function () {
        $control.fadeOut(function(){
            $(this).css('display','none');
        })
    })
})